<template>
  <li @click="handleItemClick">
    <slot></slot>
  </li>
</template>

<script>
  export default {
    name: "item",
    data () {
      return {

      }
    },
    methods: {
      handleItemClick () {
        this.$parent.emitEvent('select', this.$slots.default[0].text)
      },
    }
  }
</script>

<style scoped>

</style>
